package com.yzh.exception1
        ;

import java.util.Scanner;

/**
 * @author 于振晗
 * @title: TestException1
 * @description: TODO 测试异常类‘
 * @date 2020年08月29日
 * @path com.yzh
 */
public class TestException1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try {
            System.out.println("输入被除数");
            int num1 = sc.nextInt();
            System.out.println("输入除数");
            int num2 = sc.nextInt();
            int result = num1 / num2;
            System.out.println(result);
        }catch (Exception e){
            e.printStackTrace();
        }
        System.out.println("3q");
    }
}
